var WxParse = require('../../wxParse/wxParse.js');
//获取应用实例
const app = getApp();
Page({
	data: {
		trafficInfo:'',
		infi:'',
		latitude:34.319714,
		longitude:108.971161
	},
	dialing:function(){
		wx.makePhoneCall({
			phoneNumber:this.data.trafficInfo.tel
		})
	},
	possClick:function(){
		wx.getLocation({
			type:'wgs84',
			success:function(res){
				wx.openLocation({
					latitude: 34.319714,
					longitude: 108.971161,
					name: "四海唐人街",
					address: '西安市未央区太华北路与凤城三路十字西南角'
				})
			}
		})
	}, 
	onLoad:function(){
		var that = this;
		app.request('/api/Seller/getMarketInfo', {}, function(res){
			if(res.code == '0'){
				WxParse.wxParse('content', 'html', res.data.introduce, that, 5);
				that.setData({
					trafficInfo:res.data					
				})
			}
		});
	}
})